package imper.graphic;

import java.util.ArrayList;
import java.util.List;

import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.SlickException;

public class ImgManager
{
	protected List<Img> _list;

	public ImgManager()
	{
		_list = new ArrayList<Img>();
	}

	public void draw(GameContainer pGc, Graphics pG) throws SlickException
	{
		for (Img img : _list)
		{
			img.draw(pGc, pG);
		}
	}
	
	public void addImg( Img pImg)
	{
		_list.add(pImg);
	}
}
